/**
 *
 *
 *@Auther z.b
 *@date 2016/9/9 12:27
 *@Email:2545375@qq.com
 *@since 1.0
 *
 */
import React, {Component} from 'react'
import {Router, Route, IndexRoute, browserHistory, hashHistory} from 'react-router'
import {Main} from '../component/common/layout'
import Index from '../component/index'
import User from '../component/User'

const route = (
    <Router history={hashHistory}>
        <Route path="/" component={Main}>
            <IndexRoute component={Index}/>
            <Route path="/user" component={User}/>
        </Route>
    </Router>
);

export default route;
